package com.dhh.util.manager;

import com.dhh.dao.DataBaseHelper;
import com.dhh.dao.GoalDAO;
import com.dhh.vo.Goal;

public class GoalManager {
	private GoalDAO dao;
	
	public GoalManager(DataBaseHelper db){
		dao = new GoalDAO(db);
	}
	
	public void addGoal(Goal goal){
		dao.addGoal(goal);
	}
	
	public Goal getCurrentGoal(){
		return dao.getLastUpdateGoal();
	}
}
